<?php echo validation_errors('<p id="nav" class="error">'); ?>
<div id="nav">
<h1><img src="<?php echo base_url();?>asset/images/laptop.png" />  Edit Product</h1>
<?php if(isset($records)) : foreach($records as $row) : ?>
<?php 
echo "<br>Editing Container ID: ";
echo $this->uri->segment(3);

 echo form_open('start/edit_product');
  echo form_hidden('prodID', $this->uri->segment(3));
 echo "<br /> Upc: ";
 echo form_input('upc', $row->upc);
  echo "<br /><br /> Description:";
 echo form_input('desc', $row->desc);
  echo "<br /><br /> Model: ";
 echo form_input('model', $row->model);
  echo "<br /><br /> Master Carton: ";
 echo form_input('product_MC', $row->product_MC);
  echo "<br /><br /> Height: ";
 echo form_input('product_H', $row->product_H);
  echo "<br /><br /> Width: ";
 echo form_input('product_W', $row->product_W);
  echo "<br /><br /> Length: ";
 echo form_input('product_L', $row->product_L);
  echo "<br /><br /> Weight: ";
 echo form_input('product_Weight', $row->product_Weight);
  echo "<br /><br />";
echo form_submit('submit', 'Edit Product');
echo form_close();
?>

</div>

 <?php endforeach; ?>
 <?php else : ?>	
	<h3>An error was encountered</h3>
	<?php endif; ?>
</div>